angular.module('eYe')
	.controller('OptionsController', function($scope,Connexion) {
        
        var tabThemes = new Array();

        for(var i=0;i<7;i++){
            tabThemes.push({id:i});
        }
        
        $scope.themes = tabThemes;
        
		Connexion.cacherCacheConnexion();
		
        $scope.changerTheme = function(theme){
            $('body').removeClass('theme'+getVariableLocalStorage('theme',false));
            $('body').addClass('theme'+theme);  
            setVariableLocalStorage('theme',theme,false);
        }
        
    });